package com.kb.controller.batchNumber;


import com.kb.common.MeException;
import com.kb.dto.BatchNumberDTO;
import com.kb.service.batchNumber.BatchNumberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping ("batchNumber")
public class BatchNumberController {

    @Resource
    private BatchNumberService batchNumberService;
    @PostMapping("/getBatchNumber")
    public List<BatchNumberDTO> queryInvoice(@RequestBody Map<String, String> map)throws MeException
    {
        return batchNumberService.getBatchNumber(map);
    }

}
